package com.hp.ssm.service;


import com.hp.ssm.entity.Role;
import com.hp.ssm.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<User> selectAll(User user, @Param("page") Integer page,@Param("limit") Integer limit);

    List<Map> getAuthority(Integer rid);

    int promotion(Integer aid);

    int demotion(Integer aid);

    List<Role> selectAll1(Role role, @Param("page")Integer page,@Param("limit") Integer limit);
}
